import {apilink} from "@/api/api.js"
export let totalsx = {
    state:{
        new_totalsinfo:""
    },
    mutations:{
        xiugai(state,payload){
            state.new_totalsinfo=payload
        }
    },
    actions:{
        totalsinfo(context){
            apilink("/totals_list","get").then((ok)=>{
                console.log(ok.data.totals)
                context.commit("xiugai",ok.data.totals)
            }).catch((err)=>{
                console.log(err)
                alert("数据获取失败")
            })



        }
    }
}